package com.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.dao.StudentMapper;
import com.entity.Student;
/**
 * Version: V1.0    <br/>
 * Datetime:   2022/5/14 10:54   <br/>
 * Description: ${DES}
 *
 * @author: chen
 */
@Service
public class StudentService{

    @Resource
    private StudentMapper studentMapper;

    
    public int deleteByPrimaryKey(Long id) {
        return studentMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(Student record) {
        return studentMapper.insert(record);
    }

    
    public int insertSelective(Student record) {
        return studentMapper.insertSelective(record);
    }

    
    public Student selectByPrimaryKey(Long id) {
        return studentMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(Student record) {
        return studentMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(Student record) {
        return studentMapper.updateByPrimaryKey(record);
    }

}
